
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<script type="text/javascript">
	$(document).ready(

			function() {
				$("#checkbox_dyn_prj_type,#checkbox_dyn_tech_domain")
						.find("td").css("border", "0");

				$("#checkbox_dyn_prj_type,#checkbox_dyn_tech_domain")
						.find("tr").removeClass("li_1").removeClass("li_2");

				//alert($("#checkbox_dyn_prj_type").find(":checkbox").attr("class"));
				//.find("td").css("border","0");

				/* 				$("#checkbox_dyn_prj_type").find(":checkbox").removeClass(
							 "t_css"); */

				$(":checkbox").css("border", "0").css("border", "none");

				$("#checkbox_dyn_prj_type,#checkbox_dyn_tech_domain").find(
						"div").removeClass("s_rule");

				$("#bg1").removeClass("li_2").addClass("li_1");
				$("#bg2").removeClass("li_1").addClass("li_2");
				$("#bg3").removeClass("li_2").addClass("li_1");
				$("#bg4").removeClass("li_1").addClass("li_2");
				$("#bg5").removeClass("li_2").addClass("li_1");

				//$("#noBg_1").removeClass("li_2");

				/* 				$("#noBg_2").removeClass("li_2");
							 $("#noBg_2").find("tr").removeClass("li_2"); */

				$("#topic").addClass("li_2").removeClass("li_1");

				$("#app_area").css("width", "52%");
				$("#tech_area").css("width", "52%");
				$("#start_date").css("width", "52%");
				$("#end_date").css("width", "52%");

			});
</script>



<x:parse xml="${xmlstr}" var="xmlData" />
<div class="t_bar">项目基本信息</div>
<table id="pro_info1" class="table01 t_css" border="0" width="100%"
	cellspacing="0" cellpadding="0">
	<col style="width: 20%" />
	<col style="width: 30%" />
	<col style="width: 20%" />
	<col style="width: 30%" />



	<tr>
		<td align="right">计划类别：</td>
		<td><span name="proposal/grandparent_grant_name"><x:out
					select="$xmlData/data/proposal/grandparent_grand_name" /></span></td>
		<td align="right">业务类型：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" /></td>
	</tr>
	<tr>
		<td align="right">申报单位：</td>
		<td>
		
		<c:set var="orgName"><x:out select="$xmlData/data/submit_org/cname" /></c:set>
		<c:if test="${empty orgName }"><c:set var="orgName"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" /></c:set>
		</c:if>
		<span name="organizations/organization[0]/cname">${orgName }</span>
		
		
		</td>
				
				
				
				
		<td align="right">推荐单位：</td>
		<td><x:out select="$xmlData/data/proposal/recomend_org_name" /></td>
	</tr>


	<tr>
		<td align="right">联系人：</td>
		<td>
		<c:set var="psnName"><x:out select="$xmlData/data/proposal/prj_linkman" /></c:set>
		<c:if test="${empty psnName }"><c:set var="psnName"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></c:set>
		</c:if>
		<span name="proposal/prj_linkman">${psnName }</span>
			

		</td>
					
					
		<td align="right">联系电话/手机：</td>
		<td>
		
		<c:set var="psnTel"><x:out select="$xmlData/data/proposal/linkman_workphone" /></c:set>
		<c:if test="${empty psnTel }"><c:set var="psnTel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></c:set>
		</c:if>
		
		<span name="proposal/linkman_workphone">${psnTel }	</span> /
		
		<c:set var="psnMob"><x:out select="$xmlData/data/proposal/linkman_mobilephone" /></c:set>
		<c:if test="${empty psnMob }"><c:set var="psnMob"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></c:set>
		</c:if>
		
		
		<span name="proposal/linkman_mobilephone">${psnMob }</span></td>
	
	
	
	
	</tr>
	
	
	<tr>

		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td align="left" colspan="3"><input name="proposal/zh_title"
			label="项目基本内容-->项目名称" type="text" maxlength="50" style="width: 82%;"
			class="required input_css "
			value="<x:out	select="$xmlData/data/proposal/zh_title" />" /></td>



	</tr>

	<tr>
	<td align="right">主要完成人：</td>
		<td align="left">

		<x:forEach
				select="$xmlData/data/zh_persons/zh_person/basic_info" var="psn">
				<x:out select="$psn/zh_name" /> &nbsp; 
		    </x:forEach>

		</td>
	
	

		<td align="right"><span class="color_red">*</span>填报时间：</td>
		<td align="left"><span> <c:set
					var="submitdate">
					<x:out select="$xmlData/data/proposal/submit_date" />
				</c:set> <c:if test="${empty submitdate}">
					<c:set var="submitdate">${sercverSysDate1}</c:set>
				</c:if> <cpt:date id="submitdate" name="proposal/submit_date"
					value="${submitdate}" size="20"
					className="date input_text required" label="项目基本信息-->填报时间">
				</cpt:date>
		</span>
		</td>

		
	</tr>


	<tr>


		<td align="right" colspan="1">主要完成单位：</td>
		<td align="left"><x:forEach
				select="$xmlData/data/organizations/organization" var="per">
				<x:out select="$per/org_name" /> &nbsp; 
      </x:forEach></td>


		<td align="right">组织推荐单位：</td>

		<td align="left"><x:out
				select="$xmlData/data/proposal/recomend_org_name" /></td>





	</tr>

	<tr>


		<td align="right"><span class="color_red">*</span>任务来源：</td>

		<td><input name="proposal/duty_source" label="项目基本内容-->任务来源"
			value="<x:out	select="$xmlData/data/proposal/duty_source" />"
			class="required input_css " type="text" style="width: 52%;" /></td>




		<td align="right"><span class="color_red">*</span>项目名称可否公布：</td>



		<td align="left"><label> &nbsp; <input type="radio"
				class="do " id="advant_01" name="prj_public" label="可公布" value="1" /><span
				style="vertical-align: middle;">&nbsp;&nbsp;可</span></label>

			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>
				<input type="radio" class="do " id="advant_02" " name="prj_public"
				label="不可公布" value="0" /><span style="vertical-align: middle;">&nbsp;&nbsp;否</span>
		</label> <input type="hidden" name="proposal/prj_public_value"
			class="requiredcb required" label="项目基本内容-->项目名称可否公布" id="chkChacId"
			value="<x:out select="$xmlData/data/proposal/prj_public_value" />" />

			<input type="hidden" name="proposal/prj_public_name"
			value="<x:out select="$xmlData/data/proposal/prj_public_name" />" />

		</td>




	</tr>


	<tr id="noBg_1">
		<td align="right"><span class="color_red">*</span>密级及保密期限：</td>
		<td align="left"><input name="proposal/secret_deadline"
			label="项目基本内容-->密级及保密期限" class=".required input_css  "
			value="<x:out	select="$xmlData/data/proposal/secret_deadline" />"
			type="text" maxlength="50" style="width: 52%;" /></td>





		<td align="right"><span class="color_red">*</span>项目分类：</td>

		<td align="left"><c:set var="prj_type">
				<x:out select="$xmlData/data/proposal/prj_type_value" />

			</c:set> <cpt:checkbox key="prj_type" name="prj_type" repeatColumn="3"
				className="required "></cpt:checkbox> <input type="hidden"
			label="项目基本内容-->项目分类" name="proposal/prj_type_value" class="required"
			value="<x:out select="$xmlData/data/proposal/prj_type_value" />" />

			<input type="hidden" name="proposal/prj_type_name"
			value="<x:out select="$xmlData/data/proposal/prj_type_name" />" /></td>






		<%-- <td align="right"><span class="color_red">*</span>应用领域：</td>

		<td colspan="3"><c:set var="app_area">
				<x:out select="$xmlData/data/proposal/app_field_value" />
			</c:set> <input name="proposal/app_field_value" type="hidden"
			value="<x:out select="$xmlData/data/proposal/app_field_value" />" />

			<input name="proposal/app_field_name" type="hidden"
			value="<x:out select="$xmlData/data/proposal/app_field_name" />" />


			<cpt:select value="${app_area}" id="field" className="required"
				style="width:55%" key="app_field" label="项目基本内容-->应用领域"></cpt:select></td>
 --%>



	</tr>


	<tr id="bg1">
		<td align="right"><span class="color_red">*</span>授权发明专利(项)：</td>

		<td><input name="proposal/invention_num" label="项目基本内容-->授权发明专利"
			type="text" maxlength="10" style="width: 52%;"
			onkeyup="this.value=this.value.replace(/[^\d]/g,'')"
			onfocus="InitInput.setNumber(this,7,0,0)" onpaste="return false"
			value="<x:out	select="$xmlData/data/proposal/invention_num" />"
			class="required " /></td>



		<td align="right"><span class="color_red">*</span>计划名称和编号 ：</td>
		<td><input name="proposal/plan_name_code"
			label="项目基本内容-->计划名称和编号"
			value="<x:out	select="$xmlData/data/proposal/plan_name_code" />"
			class="required input_css " type="text" maxlength="50"
			style="width: 52%;" /></td>


	</tr>





	<%-- 	<tr id="noBg_2">

		<td align="right"><span class="color_red">*</span>所属应用领域：</td>
		<td colspan="3"><c:set var="tech_domain_value">
				<x:out select="$xmlData/data/proposal/tech_domain_value" />
			</c:set> 
			
			
			
			
			 <input
			type="hidden" id="tech_domain_value" label="项目基本内容-->所属应用领域" class="required"
			name="proposal/tech_domain_value" value="${tech_domain_value}" /> <input
			type="hidden" name="proposal/tech_domain_name"
			value="<x:out select="$xmlData/data/proposal/tech_domain_name" />" />



		</td>


	</tr> --%>

	<tr id="bg2">




		<td align="right"><span class="color_red">*</span>授权的其他知识产权(项)：</td>
		<td><input name="proposal/other_invention_num"
			label="项目基本内容-->授权的其他知识产权" type="text" maxlength="10"
			style="width: 52%;" onfocus="InitInput.setNumber(this,7,0,0)"
			onkeyup="this.value=this.value.replace(/[^\d]/g,'')"
			onpaste="return false"
			value="<x:out	select="$xmlData/data/proposal/other_invention_num" />"
			class="required input_css " /></td>


		<td align="right"><span class="color_red">*</span>国民经济行业：</td>
		<td colspan="3"><c:set var="belong_industry">
		{'id':'<x:out select="$xmlData/data/proposal/belong_industry_value" />',
		'name':'<x:out select="$xmlData/data/proposal/belong_industry_name" />'
		}					
		</c:set> <cpt:tree id="belong_industry" key="belong_industry"
				cacheable="false" className="hn_iuput_kuang required selectWidth3"
				readonly="true" value="${belong_industry}" label="项目基本内容-->国民经济行业"
				showPattern="all" shieldPattern="0" width="52%"
				onClick="initTreeValueExt3">
			</cpt:tree> <input type="hidden" name="proposal/belong_industry_value"
			value="<x:out select="$xmlData/data/proposal/belong_industry_value" />" />


			<input type="hidden" name="proposal/belong_industry_name"
			value="<x:out select="$xmlData/data/proposal/belong_industry_name" />" />



		</td>

	</tr>



	<tr id="bg3">


		<td align="right"><span class="color_red">*</span>项目开始日期：</td>

		<td align="left"><span> <c:set var="start_date">
					<x:out select="$xmlData/data/proposal/start_date" />
				</c:set> <cpt:date id="start_date" name="proposal/start_date"
					value="${start_date}" size="20"
					className="date input_text required dateCompare:end_date"
					label="项目基本内容-->项目开始日期">
				</cpt:date>
		</span></td>


		<td align="right"><span class="color_red">*</span>项目结束日期：</td>
		<td><span> <c:set var="end_date">
					<x:out select="$xmlData/data/proposal/end_date" />
				</c:set> <cpt:date id="end_date" name="proposal/end_date" size="20"
					value="${end_date}" className="date input_text  required "
					label="项目基本内容-->项目结束日期"></cpt:date>
		</span></td>




	</tr>


	<tr class="li_2">


		<td align="right"><span class="color_red">*</span>应用领域：</td>
		<td><c:set var="app_area1">{'value':'<x:out
					select="$xmlData/data/proposal/app_area_value" />','name':'<x:out
					select="$xmlData/data/proposal/app_area_name" />'}</c:set> <cpt:tree
				id="app_area" name="proposal/app_area" key="field" cacheable="false"
				className="required" onClick="initTreeValueExt3" readonly="true"
				label="项目基本内容-->应用领域" value="${app_area1 }"></cpt:tree> <input
			type="hidden" name="proposal/app_area_value" id="app_area_value"
			label="项目基本内容-->应用领域"
			value="<x:out select="$xmlData/data/proposal/app_area_value"/>" /> <input
			type="hidden" name="proposal/app_area_name" id="app_area_name"
			value="<x:out select="$xmlData/data/proposal/app_area_name" />" /></td>



		<td align="right"><span class="color_red">*</span>所属技术领域：</td>
		<td><c:set var="grantCode">
				<x:out select="$xmlData/data/proposal/grant_code" />
			</c:set> <c:set var="researcharea1">{'value':'<x:out
					select="$xmlData/data/proposal/researcharea_value" />','name':'<x:out
					select="$xmlData/data/proposal/researcharea_name" />'}</c:set> <cpt:tree
				id="researcharea" name="proposal/researcharea" key="prpTechArea"
				sqlParamVal="{grant_code:${grantCode }}" cacheable="false"
				className="required" onClick="initTreeValueExt3" readonly="true"
				label="项目基本信息-->所属技术领域" value="${researcharea1 }"></cpt:tree> <input
			type="hidden" name="proposal/researcharea_value"
			id="researcharea_value" label="项目基本信息-->所属技术领域"
			value="<x:out select="$xmlData/data/proposal/researcharea_value"/>" />
			<input type="hidden" name="proposal/researcharea_name"
			id="researcharea_name"
			value="<x:out select="$xmlData/data/proposal/researcharea_name" />" /></td>




		<%-- 		<td align="right"><span class="color_red">*</span>所属技术领域</td>
		<td><c:set var="grantCode">
				<x:out select="$xmlData/data/proposal/grant_code" />
			</c:set> <c:set var="tech_area">
		
		{'id':'<x:out select="$xmlData/data/proposal/tech_area_value" />','name':'<x:out
					select="$xmlData/data/proposal/tech_area" />'}
	      </c:set> <cpt:tree id="tech_area" name="proposal/tech_area"
				key="prpTechArea" cacheable="false"
				sqlParamVal="{grant_code:${grantCode }}" className="required"
				onClick="initTreeValueExt3" readonly="true" label="项目基本内容-->所属技术领域"
				value="${tech_area }" checkable="false">

			</cpt:tree> <input type="hidden" name="proposal/tech_area_value"
			id="tech_area_value" label="项目基本内容-->所属技术领域"
			value="<x:out select="$xmlData/data/proposal/tech_area_value"/>" />

			<input type="hidden" name="proposal/tech_area_name"
			id="tech_area_name"
			value="<x:out select="$xmlData/data/proposal/tech_area_name" />" />


		</td> --%>




	</tr>


	<tr id="bg5">


		<td align="right"><span class="color_red">*</span>主题词（分号隔开）：</td>
		<td colspan="3"><input name="proposal/theme_word"
			label="项目基本内容-->主题词" class="required "
			value="<x:out	select="$xmlData/data/proposal/theme_word" />"
			type="text" maxlength="60" style="width: 82%;" /></td>



	</tr>




</table>
<br />
<script type="text/javascript">
	function initTreeValueExt3(treeId, treeNode) {

		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_code'],[id$='" + treeId
								+ "_code']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_value'],[id$='" + treeId
								+ "_value']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_name'],[id$='" + treeId
								+ "_name']").val("");
			}

			return false;
		}

		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}

		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_code'],[id$='" + treeId + "_code']")
				.val(treeNode.id);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_value'],[id$='" + treeId + "_value']")
				.val(treeNode.id);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_name'],[id$='" + treeId + "_name']")
				.val(str);

	}

	function initTreeValueExt2(treeId, treeNode) {

		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_code'],[id$='" + treeId
								+ "_code']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_value'],[id$='" + treeId
								+ "_value']").val("");
				$("#" + treeId).parents("td").find(
						"[name$='" + treeId + "_name'],[id$='" + treeId
								+ "_name']").val("");
			}

			return false;
		}

		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}

		var hideId = $("#" + treeId).parents("td")
				.find(
						"[name$='" + treeId + "_hideId'],[id$='" + treeId
								+ "_hideId']").val();
		var hideName = $("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_hideName'],[id$='" + treeId
						+ "_hideName']").val();
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_code'],[id$='" + treeId + "_code']")
				.val(hideId);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_value'],[id$='" + treeId + "_value']")
				.val(hideId);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_name'],[id$='" + treeId + "_name']")
				.val(hideName);

	}
</script>




